package com.example.demo.threadDemo.thtradPools;

/**
 * @Description MyRunnnable
 * @Author songchuanlong
 * @Date 2025-05-11
 */
public class MyRunnnable implements Runnable{
    /**
     * When an object implementing interface {@code Runnable} is used
     * to create a thread, starting the thread causes the object's
     * {@code run} method to be called in that separately executing
     * thread.
     * <p>
     * The general contract of the method {@code run} is that it may
     * take any action whatsoever.
     *
     * @see Thread#run()
     */
    @Override
    public void run() {
        //run方法里面描述任务是干啥的
        System.out.println(Thread.currentThread().getName()+"===>66666");
        try {
//            Thread.sleep(3000);
            Thread.sleep(Integer.MAX_VALUE);
        } catch (InterruptedException e) {
            throw new RuntimeException(e);
        }
    }
}
